/* 首页视频流样式 */
.video-grid {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    background: var(--background-color);
    position: relative;
    margin: 0;
    padding: 0;
}

.video-grid::-webkit-scrollbar {
    display: none;
}

.video-grid .video-card {
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin: 0;
    padding: 0;
}

.video-grid .video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0;
    background: #000;
}

.video-grid .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.video-grid .video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    z-index: 1;
}

.video-grid .video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-grid .video-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 右侧统计信息 */
.video-grid .video-card-stats {
    position: absolute;
    right: 1rem;
    bottom: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.video-grid .video-card-stats .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    margin-bottom: 1rem;
}

.video-grid .video-card-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.video-grid .video-card-stats .stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-grid .video-card-stats .stat-item span {
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 自定义视频进度条样式 */
.custom-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 2;
    transition: height 0.2s;
}

.video-card:hover .custom-progress-bar {
    height: 8px;
}

.progress-track {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    position: absolute;
    background-color: white;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-progress-bar:hover .progress-handle {
    opacity: 1;
}

/* 播放提示样式 */
.play-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.play-hint i {
    color: white;
    font-size: 30px;
}

/* 视频时间提示样式 */
.time-tooltip {
    position: absolute;
    bottom: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    transform: translateX(-50%);
    display: none;
    z-index: 3;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-grid .video-card-stats {
        right: 0.8rem;
        bottom: 6rem;
        gap: 1rem;
    }

    .video-grid .video-card-stats .author-avatar {
        width: 40px;
        height: 40px;
    }

    .video-grid .video-card-stats .stat-item i {
        font-size: 1.2rem;
    }

    .video-grid .video-card-stats .stat-item span {
        font-size: 0.7rem;
    }
} 